package com.sailfish.springbootdemo.service.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.BaseCapacityRule;
import com.sailfish.springbootdemo.pojo.db1.TechCapacityRule;

import java.util.List;

public interface TechCapacityRuleService {

    /**
     * 查询所有
     *
     * @param searchValue
     * @return
     */
    List<TechCapacityRule> getAllTechCapacityRule(String searchValue, Integer lineTechBigTypeId, Integer lineTechSmallTypeId);

    /**
     * 更新
     *
     * @param techCapacityRule
     * @return
     */
    Result updateTechCapacityRule(TechCapacityRule techCapacityRule);

    /**
     * 新增或者更新
     *
     * @param mode
     * @param techCapacityRule
     * @return
     */
    Result addOrUpdateTechCapacityRule(String mode, TechCapacityRule techCapacityRule);

    /**
     * 删除
     *
     * @param techCapacityRuleId
     * @return
     */
    Result deleteTechCapacityRule(Integer techCapacityRuleId);

    /**
     * 修改参数的 actualEqualDeclare 值
     *
     * @param techCapacityRuleId
     * @return
     */
    Result changeActualEqualDeclare(Integer techCapacityRuleId);
}
